﻿using System;

namespace Yaml.Serialization.Events {
    public class TaggedEvent : Event {
        private string tag;
        private string anchor;

        public TaggedEvent(string tag, string anchor)
            : base() {
            this.tag = tag;
            this.anchor = anchor;
        }

        public string Anchor {
            get { return this.anchor; }
        }
        public string Tag {
            get { return this.tag; }
        }

        public override string ToString() {
            return "#<" + this.GetType().Name + "tag = " + tag + ">";
        }
    }
}
